<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>信息修改页面</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

</head>

<body>
  <br/> <br/> <br/>
	<form action="user?flag=editUser" method="post">
	
	<!-- 隐藏域，隐藏Id的值，并随着页面跳转转换，切记不能忘啊 -->
	<input type="hidden" name="userId" value="${userList[0].userId}"/>
	
	
		<table border="1" align="center">
			<tr align="center">
				<td>用户名</td>
				<td><input type="text" name="userName" value="${userList[0].userName }" />
				</td>
			</tr>
			<tr align="center">
				<td>年龄</td>
				<td><input type="text" name="age"  value="${userList[0].age }"/>
				</td>
			</tr>
			<tr align="center">
				<td>性别</td>
				<td>
				   <input type="radio" name="gender"  value="0" />女
			       <input type="radio" name="gender"  value="1"  checked= "checked"/>男
				</td>
			</tr>
			<tr align="center">
				<td>密码</td>
				<td><input type="password" name="password" value="${userList[0].password}" />
				</td>
			</tr>
			<tr align="center">
				<td colspan="2"><input type="submit" value="提交" />&nbsp;&nbsp;&nbsp;
					<input type="reset" value="重置" /></td>
			</tr>
		</table>
	</form>
</body>
</html>
